/*
 * The X-Minou Projet
 * X-Minou is a text, irc like chat program for
 * local users of Unix system
 *
 * Author :  RaX| <raxxx.fr@gmail.com>
 *
 * Xminou in a free software released as-is.
 */

#ifndef __XMINOU_USERS_HH
#define __XMINOU_USERS_HH

#include <vector>
#include <fstream>

class UsersFile
{

public:

  UsersFile (void);
  virtual ~UsersFile (void);

  void join (void);
  void part (void);

  std::vector<std::string> who ();

private:

  int extract_line_pid (std::string);

  std::ofstream m_file;

};


#endif /* __XMINOU_USERS_HH */
